import 'package:fluro/fluro.dart';
import 'package:fluro/src/router.dart';
import 'package:group_bargain/HelloPageWidget.dart';
import 'package:group_bargain/pages/shop/shop_page.dart';
import 'package:group_bargain/routers/router_init.dart';

import 'home/home_page.dart';

class RootRouter implements IRouterProvider {
  static String helloPage = "/hello";
  static String homePage = "/home";
  static String shopPage = "/shop";

  @override
  void initRouter(Router router) {
    router.define(helloPage, handler: Handler(handlerFunc: (_, params) => HelloPageWidget()));
    router.define(homePage, handler: Handler(handlerFunc: (_, params) => HomePage()));
    router.define(shopPage, handler: Handler(handlerFunc: (_, params) => ShopPage()));
  }
}
